package com.lagou.feign;

import com.lagou.pojo.Products;
import org.springframework.stereotype.Component;


//熔断器触发后实现的方法
@Component
public class ProductFeignImpl implements ProductsFeign{


    @Override
    public Products queryById(Integer id) {
        Products products = new Products ();
        products.setId (id.longValue ());
        products.setName ("Hystrix FallBack");
        products.setFlag ("-1");
        products.setGoodsDesc ("Hystrix FallBack");
        products.setGoodsType ("-1");
        products.setPrice ((double) -1);
        products.setImages ("Hystrix FallBack");
        products.setGoodsStock ((long)-1);
        return products;
    }
}
